home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / c / GAPLib.lha / GAPLib / wizards / README.CONJURER < prev    next >
Encoding:
Text File  |  1999-05-22  |  1021 b   |  34 lines

  1.  
  2. The GAP Conjurer aims at being self-explanatory to anyone who has at least
  3. some rudimentary knowledge of genetic algorithms, but there is one topic
  4. which might need some additional clarification.
  5.  
  6. This is the format of the template files for external fitness functions
  7. that the GAP Conjurer can use.
  8.  
  9. The file should be a simple textfile with the following control sequences:
  10.  
  11. $N    : Translates to the name of the current type of individual.
  12.  
  13. $I    : Translates to the index of the current population.
  14.  
  15. $$    : Translates to a single dollar sign.
  16.  
  17. There should be no other occurences of '$' in the file.
  18.  
  19. The GAP Conjurer uses the convention that a fitness function should be
  20. named after the population members, so a typical function declaration would
  21. look like this:
  22.  
  23. double $NFitness(struct $N *Polly)
  24.  
  25. And if we assume that the individuals are called polyphants, this will
  26. translate to:
  27.  
  28. double PolyphantFitness(struct Polyphant *Polly)
  29.  
  30. An example template can also be found in the examples directory.
  31.  
  32.  
  33.     -Peter (22/5-1999)
  34.